//
//  GGTTeamBuyDetailModel.m
//  GGT
//
//  Created by 空空空 on 14/10/29.
//  Copyright (c) 2014年 GGT. All rights reserved.
//

#import "GGTTeamBuyDetailModel.h"

@implementation GGTTeamBuyDetailModel
- (void)dealloc
{
    
    [_current_price release];
    [_list_price release];
    [_title release];
    [_deal_id release];
    [_descript release];
    [_image release];
    [_details release];
    [_purchase_deadline release];
    [_publish_date release];
    [_address release];
    [_number release];
    [_name release];
    [_city release];
    [super dealloc];
    
}
- (id)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.title = [dic objectForKey:@"title"];
        self.image = [dic objectForKey:@"image_url"]
        ;
        self.current_price = [dic objectForKey:@"current_price"];
        self.list_price = [dic objectForKey:@"list_price"];
        self.descript = [dic objectForKey:@"description"];
        self.deal_id = [dic objectForKey:@"deal_id"];
        self.details = [dic objectForKey:@"details"];
        self.number = [[[dic objectForKey:@"businesses"]lastObject]objectForKey:@"id"];
        self.city = [dic objectForKey:@"city"];
        //NSLog(@"title%@", self.title);
    }
    return self;

}
@end
